/*
 * Denne klasse er de forskellige Storage der kan lånes ud.
 * 
 */
package models;

import java.util.ArrayList;

/**
 *
 * @author Dan
 */
public class Storage {

    private int id;
    private String name;
    private String description;
    private int amount;
    private ArrayList<StorageItem> itemList = new ArrayList<StorageItem>();

    public Storage(int id, String name, String description, int amount) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.amount = amount;

    }

    public Storage(String name, String description, int amount) {
        this.name = name;
        this.description = description;
        this.amount = amount;

    }

    public String getDescription() {
        return description;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getAmount() {
        return amount;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void addItemCoby(StorageItem item) {
        itemList.add(item);
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public void setItemList(ArrayList<StorageItem> itemList) {
        this.itemList = itemList;
    }
}
